import request from '@/utils/request'

// 查询家庭成员情况列表
export function listRelatives(query) {
  return request({
    url: '/archives/relatives/list',
    method: 'get',
    params: query
  })
}

// 查询家庭成员情况详细
export function getRelatives(id) {
  return request({
    url: '/archives/relatives/' + id,
    method: 'get'
  })
}

// 新增家庭成员情况
export function addRelatives(data) {
  return request({
    url: '/archives/relatives',
    method: 'post',
    data: data
  })
}

// 修改家庭成员情况
export function updateRelatives(data) {
  return request({
    url: '/archives/relatives',
    method: 'put',
    data: data
  })
}

// 删除家庭成员情况
export function delRelatives(id) {
  return request({
    url: '/archives/relatives/' + id,
    method: 'delete'
  })
}
